﻿//
// Copyright (c) 2024 BPer
//
#ifndef ___BPerAudioPlayBuffer1__
#define ___BPerAudioPlayBuffer1__

#include <bperutil/buffer/BPerMediaBuffer.h>


class BPerAudioPlayBuffer:public BPerMediaBuffer{

public:
	BPerAudioPlayBuffer();
	~BPerAudioPlayBuffer(void);

	void putAudio(BPerFrame* pframe);
	void getAudio(BPerFrame* pframe);
	uint8_t *getAudios(BPerFrame* pframe);
	int32_t getFrameTimestamp(int64_t *timestamp);
	int64_t getNextTimestamp();

	void reset();
private:
	int32_t m_bufLen;

};
#endif
